<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>css的选择器</title>
    <style>
        table{
            background-color: red;
            color: black;
        }
    </style>
       
</head>
<body>
    <!-- 表格标签 -->
    <table border="1" align="center" cellspacing="0" cellspadding="0" width="200" height="150">
        <tr>
            <th>人物</th>
            <th>性别</th>
            <th>年龄</th>
            <th>爱好</th>
        </tr>
        <tr>
            <td>张三</td>
            <td>男</td>
            <td>34</td>
            <td>唱歌</td>
        </tr>
        <tr>
            <td>李四</td>
            <td>男</td>
            <td>37</td>
            <td>跳舞</td>
        </tr>
        <tr>
            <td>王二</td>
            <td>男</td>
            <td>35</td>
            <td>篮球</td>
        </tr>

    </table>

</body>
</html>